Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 72a4678949f88de378a436858be9ab99690a20c1


Parents : 96348de
Author : karamo <karahoan@drei.at>
Date : 2022-01-14T01:04:28+01:00

Update RNode_Firmware.ino

correct parentheses

Changes

1 files changed, 3 insertions(+), 3 deletions(-)


Diff

diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino
index 8d0386b..fda5a46 100644
--- a/RNode_Firmware.ino
+++ b/RNode_Firmware.ino
@@ -631,9 +631,9 @@ void serialCallback(uint8_t sbyte) {
void updateModemStatus() {
uint8_t status = LoRa.modemStatus();
last_status_update = millis();
- if (status & (SIG_DETECT == SIG_DETECT)) { stat_signal_detected = true; } else { stat_signal_detected = false; }
- if (status & (SIG_SYNCED == SIG_SYNCED)) { stat_signal_synced = true; } else { stat_signal_synced = false; }
- if (status & (RX_ONGOING == RX_ONGOING)) { stat_rx_ongoing = true; } else { stat_rx_ongoing = false; }
+ if ((status & SIG_DETECT) == SIG_DETECT) { stat_signal_detected = true; } else { stat_signal_detected = false; }
+ if ((status & SIG_SYNCED) == SIG_SYNCED) { stat_signal_synced = true; } else { stat_signal_synced = false; }
+ if ((status & RX_ONGOING) == RX_ONGOING) { stat_rx_ongoing = true; } else { stat_rx_ongoing = false; }
if (stat_signal_detected || stat_signal_synced || stat_rx_ongoing) {
if (dcd_count < dcd_threshold) {


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────